package com.suse.jd_system_server.controller;

import com.suse.jd_system_server.auto.empty.Result;
import com.suse.jd_system_server.service.HotelService_lhj;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/HotelURLlhj")
@CrossOrigin
public class HotelController_lhj {
    @Autowired
    private HotelService_lhj hotelservice;
    /**
     根据Com_id查询
     */
    @GetMapping("/searchhotel/{hotelId}")
    public Result searchhotel(@PathVariable(value = "hotelId") Long hotelId){
        return Result.buildSuccess(hotelservice.searchhotel(hotelId));
    }
}
